textview: Refine touch popup
authorMatthias Clasen <mclasen@redhat.com>
Wed, 17 Apr 2019 23:21:29 +0000 (23:21 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 17 Apr 2019 23:40:32 +0000 (23:40 +0000)
The touch popup was meant to have linked buttons.

gtk/gtktextview.c

index 8eff8f634f7f0eab173e51a4f3c51d3f7ae3bf5f..c7c83c7d260501f54bcb69bdfcd843a7038b094a 100644 (file)
@@ -8790,8 +8790,8 @@ gtk_text_view_selection_bubble_popup_show (gpointer user_data)
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
   g_object_set (box, "margin", 10, NULL);
   gtk_widget_show (box);
-  toolbar = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
-  gtk_widget_show (toolbar);
+  toolbar = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+  gtk_style_context_add_class (gtk_widget_get_style_context (toolbar), "linked");
   gtk_container_add (GTK_CONTAINER (priv->selection_bubble), box);
   gtk_container_add (GTK_CONTAINER (box), toolbar);